package com.ligong.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ligong.demo.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.tomcat.util.bcel.classfile.Constant;

import java.sql.Wrapper;
import java.util.List;

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    @Select("select * from user_info where id = #{id}")
    List<UserInfo> selectList(Integer id);


    List<UserInfo> selectList2(Integer id);


    @Select("select * from user_info ${ew.customSqlSegment}")
    List<UserInfo> selectList3(@Param(Constants.WRAPPER) QueryWrapper<UserInfo> wrapper);
}
